package itheima.zuoye.test4;

public class FamilyCar extends  Car {
    private String owner;

    public FamilyCar() {}

    public FamilyCar(String model, String licensePlate, String owner) {
        super(model, licensePlate);
        this.owner = owner;
    }

    // Getter和Setter
    public String getOwner() { return owner; }
    public void setOwner(String owner) { this.owner = owner; }

    @Override
    public void start() {
        System.out.println(owner + "的" + getModel() + "（车牌：" + getLicensePlate() + "）启动");
    }

    @Override
    public void stop() {
        System.out.println(owner + "的车已到达，请检查物品是否齐全");
    }

}
